import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';


@Injectable()

export class HomeServiceProvider {

  constructor(public http: HttpClient) {
    console.log('Hello HomeServiceProvider Provider');
  }


  // public access_token: string = '';
  // get<T>(endpoint: string, params?: any) {
  //   const headers = {
  //     headers: {
  //       'Authorization': this.access_token
  //     }
  //   };
  //   if (params) {
  //     if (!options) {
  //       options = {'params': params};
  //     } else {
  //       options['params'] = params;
  //     }
  //   }
  //   return this.http.get<T>(this.url + '/' + endpoint, headers);
  // }
}
